import request from '@/config/axios'

// 护理内容 VO
export interface Nurse_contentVO {
  id: number // id
  name: string // 护理名称
  price: number // 护理价格
  content: string // 护理描述
  isAdd: number // 是否增值服务
  status: number // 是否启用
  idDeleted: number // 是否删除
}

// 护理内容 API
export const Nurse_contentApi = {
  // 查询护理内容分页
  getNurse_contentPage: async (params: any) => {
    return await request.get({ url: `/yyzx/nurse_content/page`, params })
  },

  // 查询护理内容详情
  getNurse_content: async (id: number) => {
    return await request.get({ url: `/yyzx/nurse_content/get?id=` + id })
  },

  // 新增护理内容
  createNurse_content: async (data: Nurse_contentVO) => {
    return await request.post({ url: `/yyzx/nurse_content/create`, data })
  },

  // 修改护理内容
  updateNurse_content: async (data: Nurse_contentVO) => {
    return await request.put({ url: `/yyzx/nurse_content/update`, data })
  },

  // 删除护理内容
  deleteNurse_content: async (id: number) => {
    return await request.delete({ url: `/yyzx/nurse_content/delete?id=` + id })
  },

  // 导出护理内容 Excel
  exportNurse_content: async (params) => {
    return await request.download({ url: `/yyzx/nurse_content/export-excel`, params })
  },
}